package com.atos.smp.business.impl;

import java.util.List;

import com.atos.smp.beans.Tool;
import com.atos.smp.business.ToolManager;
import com.atos.smp.dao.ToolDao;

public class ToolManagerImpl implements ToolManager {

	private ToolDao dao;
	public ToolManagerImpl(ToolDao dao) {
		this.dao = dao;
	}

	@Override
	public List<Tool> findAllTools() {
		return dao.findAllTools();
	}

	@Override
	public void save(Tool newTool) {
		dao.save(newTool);
		
	}

	@Override
	public void update(Tool selectedTool) {
		dao.update(selectedTool);
	}

	@Override
	public void delete(Tool item) {
		dao.delete(item);
	}

}
